#ifndef CONNECTOR_H
#define CONNECTOR_H

#include <QObject>
#include <QSslSocket>
#include <QList>
#include <QSslError>
#include <QNetworkProxy>


class Connector : public QSslSocket
{
    Q_OBJECT

public:
    explicit Connector(QObject *parent = 0);

private slots:

   void slot_encrypted ();
   void slot_encryptedBytesWritten (qint64 written);
   void slot_modeChanged (QSslSocket::SslMode mode);
   void slot_peerVerifyError (const QSslError &error);
   void slot_sslErrors (const QList<QSslError> &errors);

   void slot_connected ();
   void slot_disconnected ();
   void slot_error (QAbstractSocket::SocketError);
   void slot_hostFound ();
   void slot_proxyAuthenticationRequired (const QNetworkProxy &,
										  QAuthenticator *);
   void slot_stateChanged (QAbstractSocket::SocketState);

   void slot_readyRead ();

};

#endif // CONNECTOR_H
